home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFBIND
/
VSLWIDTH.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
1KB
|
43 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Set polyline width.
;*------------------------------------------------------------------------
globl _vsl_width
_vsl_width:
; .cargs #8,handle.w,width.w
handle = 8
width = 10
link a6,#-4 ;* Allocate ptsout[2].
clr.w -(sp) ;* ptsin[1] = 0
move.w width(a6),-(sp) ;* ptsin[0] = width
move.l sp,a0 ;* Save a pointer to ptsin.
; VContrl #16,,#1
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
clr.l -(sp) ; contrl[3,2]
move.w #1,-(sp) ; contrl[1]
move.w #16,-(sp) ; contrl[0]
pea -4(a6) ;* -> ptsout
subq.l #4,sp ;* -> intout
move.l a0,-(sp) ;* -> ptsin
subq.l #4,sp ;* -> intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.w -4(a6),d0 ;* Return ptsout[0].
unlk a6
rts
end